package com.kingstar.ceres.data.holder;

import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.HashMap;
import java.util.Map;

public class InsertHolderFactory {

    @Autowired(required = false)
    private Map<String,InsertHolder> holders=new HashMap<>();

    public InsertHolder fetchHolder(String name){
        if(StringUtils.isBlank(name)){
            return null;
        }
        return holders.get(name);
    }
}
